<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html><!-- InstanceBegin template="/Templates/Function Info.dwt" codeOutsideHTMLIsLocked="false" -->
<head>
<!-- InstanceBeginEditable name="doctitle" -->
<title>WinXDraw_LoadImage</title>
<!-- InstanceEndEditable -->
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<!-- InstanceBeginEditable name="head" --><!-- InstanceEndEditable -->
<style type="text/css">
<!--
.style3 {font-size: medium}
-->
</style>

<link href="../../WinXStyles.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style1 {
	font-size: x-large;
	font-family: Verdana, Arial, Helvetica, sans-serif;
}
.style2 {
	font-size: large;
	font-family: Verdana, Arial, Helvetica, sans-serif;
}
-->
</style>
</head>

<body>
<h1 class="style1"><img src="../../WinX48.png" width="48" height="48" align="absmiddle"> <!-- InstanceBeginEditable name="title" -->WinXDraw_LoadImage<!-- InstanceEndEditable --></h1>
<hr>

<!-- InstanceBeginEditable name="Prototype" -->
<p>hImage = WinXDraw_LoadImage (STRING fileName, fileType)</p>
<!-- InstanceEndEditable --><!-- InstanceBeginEditable name="Description" -->
<p>Loads an image from disk </p>
<!-- InstanceEndEditable -->
<table width="80%" border="1" cellpadding="0" cellspacing="0">
  <tr bgcolor="#CCCCCC">
    <th width="24%"><span class="style3">Parameter</span></th>
    <th width="76%"><span class="style3">Description</span></th>
  </tr>
  <!-- InstanceBeginRepeat name="Parameter Table" --><!-- InstanceBeginRepeatEntry -->
  <tr bgcolor="#E8E8E8">
    <td><!-- InstanceBeginEditable name="Parameter" -->STRING fileName <!-- InstanceEndEditable --></td>
    <td><!-- InstanceBeginEditable name="Description" -->The name of the file to load <!-- InstanceEndEditable --></td>
  </tr>
  <!-- InstanceEndRepeatEntry --><!-- InstanceBeginRepeatEntry -->
  <tr bgcolor="#E8E8E8">
    <td><!-- InstanceBeginEditable name="Parameter" -->fileType<!-- InstanceEndEditable --></td>
    <td><!-- InstanceBeginEditable name="Description" -->The type of the file to load. See remarks for valid values <!-- InstanceEndEditable --></td>
  </tr>
  <!-- InstanceEndRepeatEntry --><!-- InstanceEndRepeat -->
</table>
<h3>Returns</h3>
<!-- InstanceBeginEditable name="Return Info" -->
<p>The handle to the image or 0 on fail </p>
<!-- InstanceEndEditable -->
<h3>Remarks</h3>
<!-- InstanceBeginEditable name="Remarks" -->
<p>fileType can be any one of the following constants:</p>
<dl>
  <dt>$$FILETYPE_WINBMP</dt>
  <dd>Windows BMP file </dd>
</dl>
<!-- InstanceEndEditable -->
<h3>Examples</h3>
<table width="80%"  border="0">
  <tr>
    <td bgcolor="#C6C6FF"><!-- InstanceBeginEditable name="Example Code" --><span class="codeStyle">'load a bitmap<br>
    hImage = WinXDraw_LoadImage (&quot;Test.bmp&quot;, $$FILETYPE_WINBMP)    </span><!-- InstanceEndEditable --></td>
  </tr>
</table>

<h2 class="style2">Related Links</h2>
<!-- InstanceBeginEditable name="Related Links" -->
<p><a href="../../WinX%20Programmer%27s%20Guide/Auto%20Draw.htm/Images.htm">Images</a><br>
  <a href="../Auto%20Draw.htm/WinXDrawImage.htm">WinXDrawImage</a><br>
  <a href="WinXDraw_DeleteImage.htm">WinXDraw_DeleteImage</a><br>
  <a href="WinXDraw_SaveImage.htm">WinXDraw_SaveImage</a><br>
  <a href="WinXDraw_GetImagePixel.htm">WinXDraw_GetImagePixel</a><br>
  <a href="WinXDraw_SetConstantAlpha.htm">WinXDraw_SetConstantAlpha</a><br>
  <a href="WinXDraw_SetImageChannel.htm">WinXDraw_SetImageChannel</a><br>
  <a href="WinXDraw_GetImageChannel.htm">WinXDraw_GetImageChannel</a><br>
  <a href="WinXDraw_GetImageInfo.htm">WinXDraw_GetImageInfo</a><br>
  <a href="WinXDraw_CopyImage.htm">WinXDraw_CopyImage</a><br>
<a href="WinXDraw_PremultiplyImage.htm">WinXDraw_PremultiplyImage</a><br>
<a href="../Clipboard.htm/WinXClip_GetImage.htm">WinXClip_GetImage</a></p>
<!-- InstanceEndEditable -->
</body>
<!-- InstanceEnd --></html>
